clear
clc

s.FactorBase.FactorDataCfg.Attributes.dateListType = 'DateListType.Trading';
s.FactorBase.FactorDataCfg.Attributes.localPath = 'pwd\CacheData';
s.FactorBase.FactorDataCfg.Attributes.periodType = 'PeriodType.IFTradingPeriod';
s.FactorBase.FactorDataCfg.Attributes.tickerList = 'TickerListType.Custom';
s.FactorBase.FactorDataCfg.Attributes.timeInterval = 'TimeIntervals.DAY01';


struct2xml(s, 'FactorBaseCfg.xml');
tree = xml2struct('FactorBaseCfg.xml');
